<?php
    // Includes obligatorios
	include ('./dbconfig.php');
	//include ('./administration/Libraries/Tools/JLTools.class.php');
	//$jl = new JLTools();
    
    $sql = "SELECT 
      `int_id_image`,
      `int_id_gallery`,
      `var_name_image`,
      `int_id_state`
    FROM 
      `tbl_images`
    WHERE  int_id_gallery = '".$_GET['qs']."' 
    ";
    $res = mysql_query($sql, $cnn);
    
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sin ttulo</title>
<style type="text/css">
<!--
body,td,th {
	font-family: Verdana, Geneva, sans-serif;
	font-size: 11px;
	color: #666;
}
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
-->
</style>
<script src="../../Resouces/js/jquery.js"></script>
<script language="Javascript">
$(function(){
	parent.formChild = $("#frmchks input");
})
</script>

</head>
<body>
<form id="frmchks">
<?php 
	while ($row = mysql_fetch_assoc($res)){
	   ?>
	    <div style="float:left; margin-right:5px;">
        <label style="display:block;"><img src="../../../galeries/<?php echo $_GET['ref']."/thumb/".$row['var_name_image']; ?>" /><br />
			<input type="checkbox" name="<?php echo $row['int_id_image'] ?>" value="" />
        </label>
        </div>
       <?php
    }
?>
</form>
</body>
</html>
